/**
 * 路由请求 : 工单明细
 * @Author  : ljq
 * @Created : 2025/10/12
 */
import request from '@/utils/request'

// 查询工单明细列表
export function listProjectDetail(query) {
  return request({
    url: '/business/projectDetail/list',
    method: 'get',
    params: query
  })
}

// 查询工单明细详细
export function getProjectDetail(id) {
  return request({
    url: '/business/projectDetail/' + id,
    method: 'get'
  })
}

// 多查询工单明细详细
export function getProjectDetailBatch(id) {
  return request({
    url: '/business/projectDetail/batch/' + id,
    method: 'get'
  })
}

// 新增工单明细
export function addProjectDetailBatch(data) {
  return request({
    url: '/business/projectDetail/batch/',
    method: 'post',
    data: data
  })
}

// 新增工单明细
export function addProjectDetail(data) {
  return request({
    url: '/business/projectDetail/',
    method: 'post',
    data: data
  })
}



// 修改工单明细
export function updateProjectDetail(data) {
  return request({
    url: '/business/projectDetail/',
    method: 'put',
    data: data
  })
}

// 删除工单明细
export function delProjectDetail(id) {
  return request({
    url: '/business/projectDetail/' + id,
    method: 'delete'
  })
}
